package org.bing.engine.container.jetty.launcher;

import java.util.ArrayList;
import java.util.List;

/**
 * {"OPTIONS=Server", "-Djetty.home=/home/jetty-7.1.6", "-Djetty.port=8070", "etc/jetty.xml", "--exec" }
 * 
 * @author chenbin
 * 
 */
public class JettyConfiguration {
	private List<String> options = new ArrayList<String>();
	private List<String> jvmargs = new ArrayList<String>();
	private List<String> sysargs = new ArrayList<String>();
	private List<String> xmlargs = new ArrayList<String>();

	public List<String> getOptions() {
		return options;
	}

	public void setOptions(List<String> options) {
		this.options = options;
	}

	public JettyConfiguration addOptions(String option) {
		options.add(option);
		return this;
	}

	public List<String> getJvmargs() {
		return jvmargs;
	}

	public void setJvmargs(List<String> jvmargs) {
		this.jvmargs = jvmargs;
	}

	public JettyConfiguration addJvmargs(String arg) {
		jvmargs.add(arg);
		return this;
	}

	public List<String> getSysargs() {
		return sysargs;
	}

	public void setSysargs(List<String> sysargs) {
		this.sysargs = sysargs;
	}

	public JettyConfiguration addSysargs(String arg) {
		sysargs.add(arg);
		return this;
	}

	public List<String> getXmlargs() {
		return xmlargs;
	}

	public void setXmlargs(List<String> xmlargs) {
		this.xmlargs = xmlargs;
	}

	public JettyConfiguration addXmlargs(String arg) {
		xmlargs.add(arg);
		return this;
	}

}
